-- GENERATED SPELL FOR [Deepmoss Webspinner] --


function spell0_4006(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4006', 5285, 1)
end

function Sorts_4006(pUnit, Event)
local choix_sorts_4006 = math.random(0, 0)
if choix_sorts_4006 == 0 then
pUnit:RegisterEvent('spell0_4006', 1, 1)
end
end

function mob4006_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4006', math.random(1500, 3000), 1)
end

function mob4006_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4006_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4006_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4006, 1, 'mob4006_Action')
RegisterUnitEvent(4006, 2, 'mob4006_Leave')
RegisterUnitEvent(4006, 3, 'mob4006_Kill')
RegisterUnitEvent(4006, 4, 'mob4006_Die')
